From: Kenichi Handa Date: Thu, 27 Aug 2009 11:12:54 +0000 (+0000) Subject: (send_process): Use encode_coding_object instead of X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10863 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=70f16acdac8aa3491a2f6cfe4b878b802957e2f4;p=emacs.git (send_process): Use encode_coding_object instead of encode_coding_string to perform eol-conversion even if the string is unibyte. --- diff --git a/src/process.c b/src/process.c index 86cc5b0c4b4..77ca2551e46 100644 --- a/src/process.c +++ b/src/process.c @@ -5721,7 +5721,8 @@ send_process (proc, buf, len, object) } else if (STRINGP (object)) { - encode_coding_string (coding, object, 1); + encode_coding_object (coding, object, 0, 0, SCHARS (object), + SBYTES (object), Qt); } else {